/**
 * 仓库
 *
 * @author sxf
 * @email sxf02615@163.com
 * @date 2025/1/15
 */
package com.sxf.crm.repository;


import com.sxf.crm.entity.OpportunityFollowUp;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 跟进记录仓库接口
 * 
 * <p>处理跟进记录实体的数据访问</p>
 * 
 * @author sxf
 * @email sxf02615@163.com
 * @date 2025/6/1
 */
@Repository
public interface OpportunityFollowUpRecordRepository extends JpaRepository<OpportunityFollowUp, Long> {
    
    Page<OpportunityFollowUp> findByOpportunityId(Long opportunityId, Pageable pageable);

    List<OpportunityFollowUp> findByOpportunityIdOrderByFollowUpTimeDesc(Long id);

} 